package org.zhb.sys.shiro.attachment.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zhb.sys.shiro.attachment.repository.AttachmentRepository;
import org.zhb.sys.shiro.attachment.service.AttachmentService;
import org.zhb.sys.shiro.model.Attachment;

@Service
public class AttachmentServiceImpl implements AttachmentService {
	@Autowired
	AttachmentRepository attachmentRepository;

	@Override
	public Attachment insert(Attachment attachment) {
		return attachmentRepository.save(attachment);
	}

	@Override
	public Attachment findById(String attachmentId) {
		return null;
	}

}
